package com.xsr.aop;

import org.aopalliance.aop.Advice;
import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @author 邢式瑞
 * @version 1.0
 * @project day37
 * @date 2022/9/6 11:17
 */
public class MyBeforeAdvice implements MethodBeforeAdvice {

    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("日志");
        System.out.println("通知");
    }
}
